package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class TenderProject {

    public static String tenderProject ="<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            "<tenderProject> \n" +
            "    <projectCode>{0}</projectCode>\n" +
            "    <tenderProjectCode>{1}</tenderProjectCode>\n" +
            "    <unifiedDealCode>{2}</unifiedDealCode>\n" +
            "    <tradePlatfTenderProjectCode>{3}</tradePlatfTenderProjectCode>\n" +
            "    <tenderProjectName>{4}</tenderProjectName>\n" +
            "    <tenderProjectType>{5}</tenderProjectType>\n" +
            "    <tenderProjectClassifyCode>{6}</tenderProjectClassifyCode>\n" +
            "    <regionCode>{7}</regionCode>\n" +
            "    <tenderContent>{8}</tenderContent>\n" +
            "    <ownerName>{9}</ownerName>\n" +
            "    <tendererCodeType>{10}</tendererCodeType>\n" +
            "    <tendererCode>{11}</tendererCode>\n" +
            "    <tendererName>{12}</tendererName>\n" +
            "    <tendererRole>{13}</tendererRole>\n" +
            "    <tenderAgencyCodeType>{14}</tenderAgencyCodeType>\n" +
            "    <tenderAgencyCode>{15}</tenderAgencyCode>\n" +
            "    <tenderAgencyRole>{16}</tenderAgencyRole>\n" +
            "    <tenderAgencyName>{17}</tenderAgencyName>\n" +
            "    <tendererAgencyBasicInfoVersion>{18}</tendererAgencyBasicInfoVersion>\n" +
            "    <tenderMode>{19}</tenderMode>\n" +
            "    <tenderOrganizeForm>{20}</tenderOrganizeForm>\n" +
            "    <createTime>{21}</createTime>\n" +
            "    <superviseDeptCodeType>{22}</superviseDeptCodeType>\n" +
            "    <superviseDeptCode>{23}</superviseDeptCode>\n" +
            "    <superviseDeptName>{24}</superviseDeptName>\n" +
            "    <approveDeptCodeType>{25}</approveDeptCodeType>\n" +
            "    <approveDeptCode>{26}</approveDeptCode>\n" +
            "    <approveDeptName>{27}</approveDeptName>\n" +
            "    <platformCode>{28}</platformCode>\n" +
            "    <pubServicePlatCode>{29}</pubServicePlatCode>\n" +
            "    <infoReporterName>{30}</infoReporterName>\n" +
            "    <infoReporterCodeType>{31}</infoReporterCodeType>\n" +
            "    <infoReporterCode>{32}</infoReporterCode>\n" +
            "    <examinerName>{33}</examinerName>\n" +
            "    <examinerCodeType>{34}</examinerCodeType>\n" +
            "    <examinerCode>{35}</examinerCode>\n" +
            "    <attachmentCode>{36}</attachmentCode>\n" +
            "    <version>{37}</version>\n" +
            "    <isOpen>{38}</isOpen>\n" +
            "    <openType>{39}</openType>\n" +
            "    <verifyTime>{40}</verifyTime>\n" +
            "</tenderProject>";

    public static void setTenderProject(String tenderProject,String s0,String s1,String s2,String s3,String s4,String s5,String s6,String s7,String s8,String s9,String s10
            ,String s11,String s12,String s13,String s14,String s15,String s16,String s17,String s18,String s19,String s20
            ,String s21,String s22,String s23,String s24,String s25,String s26,String s27,String s28,String s29,String s30
            ,String s31,String s32,String s33,String s34,String s35,String s36,String s37,String s38,String s39,String s40
    ) {
        TenderProject.tenderProject = MessageFormat.format(tenderProject,s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,
                s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25,s26,s27,s28,s29,s30,
                s31,s32,s33,s34,s35,s36,s37,s38,s39,s40
                );
    }

    public static void setTenderProject(){
        setTenderProject(tenderProject, ParameterUtils.get("projectCode"),
                                        ParameterUtils.get("tenderProjectCode"),
                                        ParameterUtils.get("unifiedDealCode"),
                                        ParameterUtils.get("tradePlatfTenderProjectCode"),
                                        ParameterUtils.get("tenderProjectName"),
                                        ParameterUtils.get("tenderProjectType"),
                                        ParameterUtils.get("tenderProjectClassifyCode"),
                                        ParameterUtils.get("regionCode"),
                                        ParameterUtils.get("tenderContent"),
                                        ParameterUtils.get("ownerName"),
                                        ParameterUtils.get("tendererCodeType"),
                                        ParameterUtils.get("tendererCode"),
                                        ParameterUtils.get("tendererName"),
                                        ParameterUtils.get("tendererRole"),
                                        ParameterUtils.get("tenderAgencyName"),
                                        ParameterUtils.get("tendererAgencyBasicInfoVersion"),
                                        ParameterUtils.get("tenderMode"),
                                        ParameterUtils.get("tenderOrganizeForm"),
                                        ParameterUtils.get("createTime"),
                                        ParameterUtils.get("superviseDeptCodeType"),
                                        ParameterUtils.get("superviseDeptCode"),
                                        ParameterUtils.get("superviseDeptName"),
                                        ParameterUtils.get("approveDeptCodeType"),
                                        ParameterUtils.get("approveDeptCode"),
                                        ParameterUtils.get("approveDeptName"),
                                        ParameterUtils.get("platformCode"),
                                        ParameterUtils.get("pubServicePlatCode"),
                                        ParameterUtils.get("infoReporterName"),
                                        ParameterUtils.get("infoReporterCodeType"),
                                        ParameterUtils.get("infoReporterCode"),
                                        ParameterUtils.get("examinerName"),
                                        ParameterUtils.get("examinerCodeType"),
                                        ParameterUtils.get("examinerCode"),
                                        ParameterUtils.get("examinerName"),
                                        ParameterUtils.get("examinerCodeType"),
                                        ParameterUtils.get("examinerCode"),
                                        ParameterUtils.get("attachmentCode"),
                                        ParameterUtils.get("version"),
                                        ParameterUtils.get("isOpen"),
                                        ParameterUtils.get("openType"),
                                        ParameterUtils.get("verifyTime")

                );
    }


    public static void main(String[] args) {
//        setTenderProject(tenderProject,"","","","","","","","","","","",
//                "","","","","","","","","","",
//                "","","","","","","","","","",
//                "","","","","","","","","","");
        setTenderProject();
        System.out.println(tenderProject);
    }
}
